package com.jilujia.domain.user;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;

import com.jilujia.framework.domain.PoEntity;

/**
 * A user who can book hotels.
 */
@Entity
@Table(name = "TB_R_USER_HOTEL")
public class UserFollowHotel implements PoEntity<Long>, Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3652559447682574722L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	@NotNull
	private Long userId;

	@NotNull
	private Long hotelId;

	public UserFollowHotel() {
	}

	public UserFollowHotel(Long userId, Long hotelId) {
		this.setUserId(userId);
		this.setHotelId(hotelId);
	}

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getHotelId() {
		return hotelId;
	}

	public void setHotelId(Long hotelId) {
		this.hotelId = hotelId;
	}
}
